package com.zjlanyun.eplus.view.report;

/**
 * 作者：韩笑 on 2017/6/27 0027 08:39
 * <p>
 * 作用：常量类
 */


public final class UtilConstants {

    //获取菜单接口的值
    public static final String KEY_NAME = "name";
    public static final String VALUE_NAME = "报表";

    //NavigationTabStrip 显示title
    public static final String TITLE1 = "图表";//顶部NavigationTabStrip显示的分类名1
    public static final String TITLE2 = "表格";//顶部NavigationTabStrip显示的分类名2

    //NavigationTabStrip默认选中的页面序号
    public static final int DEFAULT_CHECK = 0;//菜单列表默认选中序号

    //json中放数据的键名
    public static final String KEY_JSON_DATA = "data";//返回Json数据data键名

    //Fragment传值使用的键名
    public static final String MODEL_ID = "modelId";//模型id
    public static final String SQL_CONDITION = "sql";//分类条件
    public static final String KEY_ACTION = "action";//动作


    //HistogrmFragment 柱状统计图页面
    public static final int SHOW_HISTOGRM = 1;//展示柱状统计图
    public static final String ACTION = "Daily";//操作
    public static final String KEY_HF_XVALUE = "xValue";//x轴
    public static final String KEY_HF_YVALUE = "yValue";//y轴


    //ListFragment 列表布局Fragment
    public static final String LISTFRAGMENT_ACTION = "DailyFunds";//操作
    public static final String LOAD_MORE = "加载更多";//上拉加载提示信息
    public static final String NO_MORE = "没有更多内容了";//全部加载完提示的信息
    public static final String KEY_LF_PAGE = "page";//当前页数 键名
    public static final String KEY_LF_PAGESIZE = "pagesize";//每一页有几条数据 键名

    public static final int PAGE_COUNTS = 5;//每页显示的数据数量
    public static final String KEY_JSON_LF_LISTSIZE = "listSize";//列表长度
    public static final String KEY_JSON_LF_LISTVAR = "listVar";////需要展示的数据
    public static final String KEY_JSON_LF_CONDITION = "condition";////需要展示的数据
    public static final String KEY_FLISTID = "FListId"; //数据分类标识
    public static final String KEY_FXVALUE = "FxValue";//统计图X轴的值
    public static final String KEY_FCORRESPONDINGTABLE = "FCorresPondingTable";//属性对应显示的表
    public static final String KEY_FYVALUE = "FyValue";//统计图Y轴的值
    public static final String KEY_FCARTOGRAMTYPR = "FCartogramTypr";//统计图的种类

    //PieFragment 饼状统计图类型统计图页面
    public static final int SHOW_PIE = 1;//展示饼状统计图
    public static final String PIE_ACTION = "Daily";//操作
    public static final String KEY_PF_XVALUE = "xValue";//x轴对应键名
    public static final String KEY_PF_YVALUE = "yValue";//y轴对应键名


    //TableFragment 表格，用于柱形图饼状图的表格显示
    public static final int SHOW_TABLE = 1;//将数据展示在表格上
    public static final String TABLE_ACTION = "DailyTable";//操作
    public static final String KEY_TF_JSON_CONDITION = "condition";//返回JSON数据中的条件的键名
    public static final String KEY_TF_JSON_TABLE = "table";//返回JSON数据中的表格需要显示的数据的键名

    //TableLayoutFragment 表格布局的Fragment
    public static final String TABLELAYOUT_ACTION = "Table";//操作

    //XListView 刷新加载ListView
    public final static int SCROLLBACK_HEADER = 0;//回滚到头部
    public final static int SCROLLBACK_FOOTER = 1;//回滚到底部
    public final static int SCROLL_DURATION = 400; // 滚动回时间
    public final static int PULL_LOAD_MORE_DELTA = 50; //距离底部>50 px, 触发加载更多.
    public final static float OFFSET_RADIO = 1.8f; // 支持iOS版的拖拽功能.

    //XListViewFooter
    public final static int STATE_NORMAL = 0;//状态NORMAL
    public final static int STATE_READY = 1;//状态READY
    public final static int STATE_LOADING = 2;//正在加载

    //XListViewHeader
    public final static int HEADER_STATE_NORMAL = 0;//状态NORMAL
    public final static int HEADER_STATE_READY = 1;//状态READY
    public final static int HEADER_STATE_REFRESHING = 2;//正在刷新

    //TableActivity 列表布局中用户点击某个具体的属性从而跳转到该页面
    public final static String TABLEACTIVITY_ACTION = "propertyTable";//动作
    public static final String KEY_TA_JSON_CONDITION = "condition";//返回JSON数据中的条件的键名
    public static final String KEY_TA_JSON_CONDITIONSQL = "conditionSql";//返回JSON数据中条件sql语句的键名
    public static final String KEY_TA_JSON_TABLE = "table";//返回JSON数据中的表格需要显示的数据的键名
    public static final String KEY_TA_PROPERTY = "PropertyName";
    public static final String KEY_TA_TDOMAIN = "tdomain";
    public static final int CLASS_TOP = 5;//自定义分类控件距离上方的距离
    public static final int CLASS_BOTTOM = 5;//自定义分类控件距离下方的距离
    public static final int CLASS_LEFT = 10;//自定义分类控件距离左边的距离
    public static final int CLASS_RIGHT = 10;//自定义分类控件距离右方的距离

    //MoreChartFragment 多图表布局界面
    public static final String KEY_MF_MODELNAME= "modle_name";

    //ReportActivity 报表Activity
    public static final String REPORT_ACTION = "ReportMenu";//操作
    public static final int RECYCLEVIEW_ROWS = 1;//recycleView的列数
    public static final String LIST = "list";//列表布局
    public static final String HISTOGRM = "histogram";//柱形统计图
    public static final String PIE = "pie";//饼状统计图
    public static final String TABLE = "table";//表格
    public static final String DOUBLECHART = "doublechart";//多图表
    public static final String ACL = "acl";//新多图表布局
    public static final int SHOW_LIST = 1;//菜单控件加载数据
    public static final int SHOW_DEFAULT_LIST = 2;//展示默认列表
    public static final int DEFAULT_COUNT = 0;//默认展示第几条数据

    //解析菜单需要用到的键名
    public static final String KEY_RA_VIEWMODE = "view_mode";//模型类型
    public static final String KEY_RA_MODELID = "model_id";//模型名
    public static final String KEY_RA_TDOMAIN = "tdomain";//条件
    public static final String KEY_RA_NAME = "name";//模型名

    //与TableActivity之间传值使用的键名
    public static final String KEY_RA_TABLENAME = "tablename";//属性对应表名
    public static final String KEY_RA_PROPERTYNAME = "PropertyName";//属性名


    //MyListViewAdapter与ListItemAdapter之间的通信
    public static final String KEY_ADAPTER_LISTNAME = "listname";//属性
    public static final String KEY_ADAPTER_TABLENAME = "tablename";//属性对应表名
    public static final String KEY_ADAPTER_VALUE = "value";//属性对应值


    //SpaceItemDecoration recycleView工具类中px转化使用的
    public static final int KEY_DP2PX = 9001;
    public static final int KEY_SP2PX = 9002;
}
